/*
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2022-08-17 17:24:44
 * @LastEditors: 陈妮娜 969682281@qq.com
 * @LastEditTime: 2024-11-25 15:55:33
 * @FilePath: \backstage\src\api\request.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import {
    // req,
    reqNull,
    // up,
    // reqNulls,
    // reqNull1,
    reqPdf
} from '@/api/index';
let url = 'http://1.14.103.201:8300/IOTManagement/' //高信
// let url = 'http://192.168.0.02:8080/IOTManagement/' //孙猛本地
// let url = 'http://192.168.0.18:8300/IOTManagement/' //李康本地
// let url = 'http://192.168.0.20:8300/IOTManagement/' //嫣然/本地
// let url = 'http://192.168.0.44:8080/IOTManagement/' //韩磊/本地
// 获取试验室信息详情
export const getLaboratoryInfo = (res) => {
    return reqNull("post", url + "Laboratory/getLaboratoryInfo", res)
}
export const saveLaboratoryInfo = (res) => {
    return reqNull("post", url + "Laboratory/saveLaboratoryInfo", res)
}
// 打印
export const getTesterInfoPDF = (res) => {
    return reqPdf("post", url + "App/upload/getTesterInfoPDF", res, 'blob')
}
// 检测人员信息列表页
export const getPersonalInfoList = (res) => {
    return reqNull("post", url + "PersonalInfo/getPersonalInfoList", res)
}
// 详情
export const getPersonalInfo = (res) => {
    return reqNull("post", url + "PersonalInfo/getPersonalInfo", res)
}
// 保存
export const savePersonalInfo = (res) => {
    return reqNull("post", url + "PersonalInfo/savePersonalInfo", res)
}
// 删除
export const deletePersonalInfo = (res) => {
    return reqNull("post", url + "PersonalInfo/deletePersonalInfo", res)
}
// 功能室 
// 获取功能室列表接口
export const getFunctionRoomList = (res) => {
    return reqNull("post", url + "FunctionRoom/getFunctionRoomList", res)
}
// 删除功能室接口
export const deleteFunctionRoom = (res) => {
    return reqNull("post", url + "FunctionRoom/deleteFunctionRoom", res)
}
// 保存
export const saveFunctionRoom = (res) => {
    return reqNull("post", url + "FunctionRoom/saveFunctionRoom", res)
}
// 功能室


// 仪器设备信息
// 列表页
export const getInstrumentInfoList = (res) => {
    return reqNull("post", url + "InstrumentInfo/getInstrumentInfoList", res)
}
// 保存
export const saveInstrumentInfo = (res) => {
    return reqNull("post", url + "InstrumentInfo/saveInstrumentInfo", res)
}
// 删除
export const deleteInstrumentInfo = (res) => {
    return reqNull("post", url + "InstrumentInfo/deleteInstrumentInfo", res)
}
// 详情
export const getInstrumentInfo = (res) => {
    return reqNull("post", url + "InstrumentInfo/getInstrumentInfo", res)
}
// 打印
export const getTesterEquipPDF = (res) => {
    return reqPdf("post", url + "App/upload/getTesterEquipPDF", res)
}

// 设备检定校准接口
// 新增
export const saveEquipmentTestingInfo = (res) => {
    return reqNull("post", url + "EquipmentTestingInfo/saveEquipmentTestingInfo", res)
}
// 详情
export const getEquipmentTestingInfo = (res) => {
    return reqNull("post", url + "EquipmentTestingInfo/getEquipmentTestingInfo", res)
}
// 列表
export const getEquipmentTestingInfoList = (res) => {
    return reqNull("post", url + "EquipmentTestingInfo/getEquipmentTestingInfoList", res)
}
// 删除
export const deleteEquipmentTestingInfo = (res) => {
    return reqNull("post", url + "EquipmentTestingInfo/deleteEquipmentTestingInfo", res)
}
// 
// 设备使用记录
export const getEquipmentUseInfoList = (res) => {
    return reqNull("post", url + "EquipmentUse/getEquipmentUseInfoList", res)
}
